.ethan-uploader {
    width: 100%;
    min-height: 109px;
    overflow: auto;

    .avatar-uploader {
        border: 1px dashed #d9d9d9;
        float: left;
        width: 104px;
        height: 104px;
        border-radius: 4px;
        background-color: #fafafa;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.3s ease;
        vertical-align: top;
        margin-right: 8px;
        margin-bottom: 8px;
        display: table;
        padding: 8px;

        .ethan_upload {
            width: 100%;
            height: 100%;
            display: table-cell;
            text-align: center;
            vertical-align: middle;
            padding: 8px;
        }

        img {
            width: 100%;
            height: 100%;
        }
    }

    .ant-upload-list {
        float: left;
        height: 100%;

        .ant-upload-list-item {
            width: 104px;
            height: 104px;
            float: left;
            background-color: rgb(250, 250, 250);
            text-align: center;
            cursor: pointer;
            vertical-align: top;
            margin: 0;
            margin-right: 8px;
            margin-bottom: 8px;
            border-width: 1px;
            padding: 8px;
            box-sizing: border-box;
            border-style: dashed;
            border-color: rgb(217, 217, 217);
            border-image: initial;
            border-radius: 4px;
            transition: border-color 0.3s ease 0s;
            position: relative;

            &:hover {
                .upload_preview {
                    opacity: 1;
                }
            }

            .multiple-img {
                width: 100%;
                height: 100%;
            }

            .upload_preview {
                .center(flex);
                width: 100%;
                height: 100%;
                position: absolute;
                top: 0;
                left: 0;
                transition: all .3s;
                opacity: 0;

                i {
                    z-index: 2;

                    &:first-of-type {
                        margin-right: 20px;
                    }
                }

                &:after {
                    content: "";
                    width: 100%;
                    height: 100%;
                    transition: all .3s;
                    z-index: 1;
                    position: absolute;
                    top: 0;
                    left: 0;
                    background: rgba(0, 0, 0, .3);
                }
            }
        }
    }
}


.file-uploader {
    width: 300px;
    background: #fff;
    padding: 12px;

    .drag-content {
        border-radius: 8px;
        border: 1px dashed #ccc;
        width: 200px;
        height: 160px;
        margin: 20px auto;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        .center(flex);

        .drag-tips {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, .8);
            .center(flex);
            color: @text-desc;
        }

        i {
            font-size: 40px;
            color: @el-primary;
        }

        p {
            color: @text;
            font-weight: 500;
            margin: 0;
            margin-top: 5px;
        }

        .drag-divider {
            margin: 5px auto;
            min-width: 60%;
            color: @text-desc;
            font-weight: normal;
            font-size: 12px;
            width: 60%;
        }

        .drag-btn {
            width: 70%;
            margin: 0 auto;
            height: 30px;
            line-height: 30px;
            border-radius: 4px;
            font-size: 12px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(24, 144, 255, .7);
            background: @primary;
            border-color: @el-primary;
            color: #fff;
            cursor: pointer;
        }
    }

    .file-list {
        width: 100%;

        .file-item {
            width: 100%;
            height: 48px;
            border-radius: 4px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
            background: #fff;
            padding: 0 6px;
            cursor: pointer;
            .center(flex);
            margin-bottom: 12px;

            .item-left,
            .item-right {
                width: 40px;
                height: 100%;
                .center(flex);
            }

            .item-middle {
                width: calc(100% - 80px);
                .center(flex);
                flex-direction: column;
                align-items: flex-start;
                padding-left: 4px;
                box-sizing: border-box;

                p {
                    margin: 0;
                    font-size: 12px;
                    color: @text-desc;
                }
            }
        }
    }
}